package com.itheima_08.test;

import com.API.domain.Student;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("输入学生信息");
        String s = sc.nextLine();

        String[] s1 = s.split(",");

        Student stu = new Student(s1[0],s1[1]);
        System.out.println(stu.getUsername()+"----"+stu.getAge());
        Student stu1 = new Student();
        stu1.setUsername("李四");
        stu1.setAge("44");
        System.out.println(stu1.getUsername()+"----"+stu1.getAge());
    }
}
